From: Juanma Barranquero Date: Thu, 17 Mar 2011 15:44:02 +0000 (+0100) Subject: src/xfaces.c (Fx_load_color_file): Read color file from absolute filename. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17^2~130 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9cda2bb82251401f2b2713deadfad6c9b0b9c392;p=emacs.git src/xfaces.c (Fx_load_color_file): Read color file from absolute filename. --- diff --git a/src/ChangeLog b/src/ChangeLog index 07108ad4ff4..6e325012c47 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-17 Juanma Barranquero + + * xfaces.c (Fx_load_color_file): + Read color file from absolute filename (bug#8250). + 2011-03-11 Juanma Barranquero Backport revno:103582 from trunk. diff --git a/src/xfaces.c b/src/xfaces.c index e9e677d1b19..9956ef55842 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6625,7 +6625,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) CHECK_STRING (filename); abspath = Fexpand_file_name (filename, Qnil); - fp = fopen (SDATA (filename), "rt"); + fp = fopen (SDATA (abspath), "rt"); if (fp) { char buf[512];